package com.example.receiver;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class Receiver {

    @JmsListener(destination = "test-topic")
    public void receiveMessage(String text) {
        System.out.println("接收到的内容为：" + text);
    }
}
